/* eslint-disable quotes */
/*
 * @Date: 2022-09-16 09:20:00
 * @LastEditTime: 2022-09-18 09:36:46
 */
import Layout from '@/layout'

export const allAsyncRoutes = [
  {
    path: '/acl',
    name: 'Acl',
    component: () => import('@/layout/index.vue'),
    redirect: '/acl/user/list',
    meta: {
      title: '权限管理',
      icon: 'ele-Setting'
    },
    children: [
      {
        name: 'User',
        path: '/acl/user/list',
        component: () => import('@/views/user/index.vue'),
        meta: {
          title: '用户管理'
        }
      }
    ]
  }
]

export const anyRoute = { path: '*', redirect: '/404', hidden: true }

export const staticRoutes = [
  {
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    children: [{
      path: 'dashboard',
      name: '首页',
      component: () => import('@/views/dashboard/index'),
      meta: { title: '首页', icon: 'dashboard' }
    }]
  },
  {
    path: '/404',
    component: () => import('@/views/404'),
    hidden: true
  }
]

// export const staticRoutes = [
//   {
//     path: '/login',
//     component: () => import('@/views/login/index'),
//     hidden: true
//   },

//   {
//     path: '/404',
//     component: () => import('@/views/404'),
//     hidden: true
//   },
//   {
//     path: '/',
//     component: Layout,
//     redirect: '/dashboard',
//     children: [{
//       path: 'dashboard',
//       name: '首页',
//       component: () => import('@/views/dashboard/index'),
//       meta: { title: '首页', icon: 'dashboard' }
//     }]
//   },

//   {
//     path: '/acl',
//     name: 'Acl',
//     component: () => import('@/layout/index.vue'),
//     redirect: '/acl/user/list',
//     meta: {
//       title: '权限管理',
//       icon: 'ele-Setting'
//     },
//     children: [
//       {
//         name: 'User',
//         path: '/acl/user/list',
//         component: () => import('@/views/user/index.vue'),
//         meta: {
//           title: '用户管理'
//         }
//       }
//     ]
//   },
//   { path: '*', redirect: '/404', hidden: true }
// ]
